package com.tmsps.ne4weixin.bean.message.custom;

import com.tmsps.ne4weixin.bean.message.custom.vo.Image;
import com.tmsps.ne4weixin.config.enumeration.MsgTypeEnum;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @Title: VoiceMessage.java
 * @Package: com.tmsps.ne4weixin.bean.custom
 * @Description: 客服消息-发送图片消息
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class ImageMessage extends BaseMessage {

	/**
	 * 图片消息内容
	 */
	private Image image;
	
	public ImageMessage(String touser) {
		 super(touser, MsgTypeEnum.IMAGE);
	}
	
	public ImageMessage(String touser,String mediaId) {
		 super(touser, MsgTypeEnum.IMAGE);
		 this.image = new Image(mediaId);
	}
	
	public ImageMessage(String touser,Image image) {
		 super(touser, MsgTypeEnum.IMAGE);
		 this.image = image;
	}
}
